﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace FwProject.ShoppingMall.Com
{
    /// <summary>
    /// 规格表
    /// </summary>
    [Table("Spce")]
    public class Spce : FullAuditedEntity<Guid>
    {
        public const int StringLength = 200;
        public const string TempFileUrlPrefix = FwConsts.TempFileUrlPrefix + "spce/";
        public const string SaveFileUrlPrefix = FwConsts.SaveFileUrlPrefix + "spce/";
        /// <summary>
        /// 规格名称
        /// </summary>
        [Required]
        [StringLength(StringLength)]
        public string SpceName { get; set; }
        /// <summary>
        /// 规格类型
        /// </summary>
        [Required]
        public SpceTypeEnum SpceType { get; set; } = SpceTypeEnum.文字;

        /// <summary>
        /// 规格备注
        /// </summary>
        public string SpceNote { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Required]
        public int Orders { get; set; } = 0;
    }


    public enum SpceTypeEnum
    {
        文字 = 0,
        图片 = 1
    }
}
